package atticcomp;

import org.zkoss.lang.Objects;
import org.zkoss.zk.ui.HtmlBasedComponent;

public class MyButton extends HtmlBasedComponent {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	String label;
	
	public String getLabel(){
		return label;
	}
	
	public void setLabel(String label){
		if( label == null )
			label = "";
		
		if ( !Objects.equals(this.label, label) ){
			this.label = label;
			this.invalidate();
		}
		
	}

}
